#include "Operation.h"

Operation::Operation(int operationType, int rowNum, int value) : operationType(operationType), rowNum(rowNum), value(value) {}

int Operation::getRowNum() const {
    return this->rowNum;
}

int Operation::getOperationType() const {
    return this->operationType;
}

int Operation::getValue() const {
    return this->value;
}

void Operation::setValue(int newValue) {
    this->value = newValue;
}

std::ostream& operator<< (std::ostream& os, const Operation& operation) {
    os << "Operation: " << operation.getOperationType() << " on row " << operation.getRowNum() << " with value " << operation.getValue();
    return os;
}